<?php
session_start();
require_once("../config/include_tokyo.inc.php");
require_once("../class/Common_Function.php");
require_once("../class/User.php");
require_once("../class/Core_Lib_Page.php"); //翻页

//访问权限验证
$userRole = $_SESSION['user_role'];
if($userRole == 1 || $userRole == 8){
	//管理员 || 团队成员
}else{
	if($userRole > 0){
		$url = "../index.php?loginError=2";//没权限
	}else{
		$url = "../index.php?loginError=3";//没登录
	}	
	echo "<script language='javascript' type='text/javascript'>";
	echo "window.location.href='$url'";
	echo "</script>";
}

//当前用户
$user_id = $_SESSION['user_id'];


//取值
$sql_list = "select * from teamjobs where user_id=$user_id";
$result = $db->Execute($sql_list);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!--Begin:head-->
<? $pageTitle = "我的常规任务"; ?>
<?php include("../head.php"); ?>
<!--End:head-->


<body>
<?php include("../topMenu.php"); ?>


<?php include("myteamMenu.php"); ?>


<form name="listForm" action="myJob.php" method="post">
<div id="container" >

<div id="searchDiary">

<div class="grayTable">	
<h4>我的常规任务</h4>
<div id="job_content">
<?php
$strTR = "";
if(!$result->EOF) {
	$strTR = $result->fields['job_content'];
}else{
	$strTR = "你的任务还没有分配;";
}
echo $strTR;
?>
</div>



</div>



</div><!--end container -->

<input type="hidden" name="doFlag" id="doFlag" >
</form>





</body>




</html>






<script>  
$("#job_content").html(replaceEnter2BR($('#job_content').html()));
</script>